package cn.maxhou.service.impl;

import cn.maxhou.entity.SysUser;
import cn.maxhou.mapper.SysUserMapper;
import cn.maxhou.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("sysUserService")
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public int insert(SysUser user) {
        return sysUserMapper.insert(user);
    }

    @Override
    public int deleteById(Integer id) {
        return sysUserMapper.deleteById(id);
    }

    @Override
    public int update(SysUser user) {
        return sysUserMapper.update(user);
    }

    public void setSysUserMapper(SysUserMapper sysUserMapper) {
        this.sysUserMapper = sysUserMapper;
    }
}
